package cn.ichiva.puppet.example.base.p2;

import javafx.fxml.impl.AbstractPuppetComponent;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;

/**
 * 条件渲染,事件绑定
 */
public class L1ComponentBox extends AbstractPuppetComponent {

    @Override
    public CharSequence render() {
        imports(VBox.class, Label.class, L1RedButton.class);
        return """
                <VBox>
                    <Label text="组件化" />
                    <L1RedButton />
                </VBox>
                """;
    }
}
